/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sheep.view.jung.utils;

/**
 *
 * @author geek
 */
  import edu.uci.ics.jung.graph.Edge; 
  import edu.uci.ics.jung.graph.Vertex; 
import edu.uci.ics.jung.graph.decorators.DefaultToolTipFunction; 
import sheep.model.Task;
  /** tool tips qui va nous permettre d avoir des infromations sur les VERTEX et les EDGE**/ 
  public class HitTips extends DefaultToolTipFunction 
  { 
     public HitTips () 
     { 
     
     } 
  @Override
     public String getToolTipText(Vertex v) { 

       Task task =(Task)v.getUserDatum("Key"); 
       String informations = "" 
       +"Nom: "+ task.getName()  
       +""; 
       
       return informations; 
     } 
  @Override
     public String getToolTipText(Edge edge) { 
       return "Child"; 
     } 
  } 
